import json
import elu.project.model as projectModel
from elu.base.handler import BaseHandler

class ProjectHanlder(BaseHandler):
    def get(self):
        self.render("project/show.html")


class ProjectAPIHandler(BaseHandler):
    def get(self):
        table = projectModel.ProjectModel()
        results = table.r()
        self.write(json.dumps(results))
